package com.zhongke.cotrun.service;


import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.zhongke.cotrun.model.pojo.PayOrder;
/**
 * @Description: 支付订单信息
 * @Author: songjing
 * @Date:   2020-03-20
 * @Version: V1.0
 */
public interface PayOrderService extends IService<PayOrder> {  
	/**
     * 根据orderCode查看订单详情
     *
     * @param 订单号
     * @return
     */
    public PayOrder selectDetailByOrderCode(String orderCode);
    /**
     * 根据用户id查看订单列表
     * @param userId 用户表主键
     * @param searchKey 关键词
     * @param pageNum 页码
     * @param pageSize 页大小
     * @return
     */
    public PageInfo selectAllByMine(Long userId,String searchKey,String state,String appraiseState, Integer pageNum, Integer pageSize);
    /**
     * 根据指定主体主键查看订单列表
     * @param mainId 用户表主键
     * @param type 主体类型
     * @param searchKey 关键词
     * @param pageNum 页码
     * @param pageSize 页大小
     * @return
     */
    public PageInfo selectAllByMain(Long mainId,String type,String searchKey,String state,String appraiseState, Integer pageNum, Integer pageSize);
    /**
     * 查询过期未支付订单
     * @return
     */
    public List<PayOrder> selectOutTimeList();
}
